﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices.Server;

namespace demo.Web.PresentationModel
{
    public partial class PMDepartment
    {
        [Key]
        public int ID { get; set; }
        public string Name { get; set; }

        // remember to change 'EagerLoad' in MainVM when switching this
        // leave in for eager load; comment out for lazy load
        [Include]                               
        [Association("dept_emp", "ID", "DeptID", IsForeignKey=false)]
        public IEnumerable<PMEmployee> employees { get; set; }
    }
}